package userInterfaces;

import java.io.Serializable;

import javax.annotation.PostConstruct;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.SessionScoped;

@ManagedBean(name = "userSession")
@SessionScoped
public class UserSessionManagedBean implements Serializable {
	
private boolean loggedIn;
private String originalURL;

//public UserSessionManagedBean(){
//	super();
//	this.originalURL=null;
//}

@PostConstruct
public void init() {
System.err.println("inizializzo usersessionbean");
}

public void recordOriginalURL(String originalURL) {
	this.originalURL = originalURL;
	System.err.println("originalURL vale: "+originalURL);

}
public boolean isLoggedIn() {
	return loggedIn;
}
public void setLoggedIn(boolean loggedIn) {
	this.loggedIn = loggedIn;
}
public String getOriginalURL() {
	return originalURL;
}
public void setOriginalURL(String originalURL) {
	this.originalURL = originalURL;
}


// Getters and Setters
}
